package com.zzyl.mapper;

import com.zzyl.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberMapper {

    //根据openId查询数据库返回member对象
    @Select("select * from member where open_id = #{openId}")
    Member getByOpenId(String openId);

    //将手机号
    void update(Member member);

    //将member对象保存到数据库中
    void save(Member member);
}